package cn.tristenstudy.blog.service.impl;

import cn.tristenstudy.blog.mapper.UserMapper;
import cn.tristenstudy.blog.pojo.User;
import cn.tristenstudy.blog.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xichen1.li
 * @date 2020-12-23 20:18
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User queryUserByName(String username) {
        return userMapper.queryUserByName(username);
    }
}
